import * as TYPES from '../Actions/actionTypes';

const initialState = {
	profile: {},
	userinfo:{},
	special:{}
};

let proflieReducer = (state=initialState, action)=>{

	switch(action.type){
		case TYPES.PROFILE_GET:
			return {
				...state,
				profile: action.profile
			};
		case TYPES.PROFILE_INFO:
			return {
				...state,
				userinfo: action.userinfo
			};
		case TYPES.PROFILE_DETAIL:
			return {
				...state,
				special: action.special
			};
		default: 
			return state;
	}

}


export default proflieReducer;
